TARGET = test

CFLAGS = -std=c99

# -I 指定头文件路径
CFLAGS += -I/opt/intel/oneapi/mkl/latest/include
# -L 指定运行库路径和编译参数
LDFLAGS = -L/opt/intel/oneapi/mkl/latest/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl
#LDFLAGS += -lm -lpthread

test: main.o
	gcc -o test main.o  $(LDFLAGS)  

main.o: main.c
	gcc -c main.c  $(CFLAGS)

clean:
	rm -f *.o test

